<%@page import="com.moioo.exam.TFile"%>
<%@page import="com.moioo.vod.VodManager"%>
<%
String FileId=request.getParameter("FileId");
String FilePath=request.getParameter("FilePath");
String FileName=request.getParameter("FileName");
out.println(new com.moioo.vod.action.VodUserUploadAction().getDIR());
if (true)return;
int k=FilePath.indexOf(".");
if (k>0)FileName=FilePath.substring(k+1);
response.setContentType("APPLICATION/OCTET-STREAM");
response.setHeader("Content-Disposition","attachment; filename=\"" + FileName+ "\"");
java.io.FileInputStream fileInputStream = new java.io.FileInputStream(FilePath);
int i;
byte buf[]=new byte[1024];
while ((i=fileInputStream.read(buf)) != -1) {
response.getOutputStream().write(buf,0,i);
}
fileInputStream.close();
response.getOutputStream().close();
%>